﻿using Himp.Base;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Himp.Outpatient
{
    /// <summary>
    /// 门诊检查检验申请记录
    /// </summary>
    public class OtpAppyForm : AuditedAggregateRoot<Guid>, IMultiTenant
    {
        /// <summary>
        /// 门诊就诊记录
        /// </summary>
        public Guid OtpMdtrtRecId { get; set; }

        /// <summary>
        /// 门诊处方记录Id
        /// </summary>
        public Guid OtpRxRecId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public EnumOtpAppyFormType OtpAppyFormType { get; set; }

        /// <summary>
        /// 申请单号
        /// </summary>
        public string AppyNo { get; set; }

        /// <summary>
        /// 申请单据名称
        /// </summary>
        public string AppyDocName { get; set; }

        /// <summary>
        /// 申请日期
        /// </summary>
        public DateTime AppyDate { get; set; }

        /// <summary>
        /// 申请科室Id
        /// </summary>
        public Guid AppyDeptId { get; set; }

        /// <summary>
        /// 申请科室编码
        /// </summary>
        public string AppyDeptCodg { get; set; }

        /// <summary>
        /// 申请科室名称
        /// </summary>
        public string AppyDeptName { get; set; }

        /// <summary>
        /// 开单医生Id
        /// </summary>
        public Guid AppyDrId { get; set; }

        /// <summary>
        /// 开单医生编码
        /// </summary>
        public string AppyDrCodg { get; set; }

        /// <summary>
        /// 开单医生姓名
        /// </summary>
        public string AppyDrName { get; set; }

        /// <summary>
        /// 申请单状态
        /// </summary>
        public EnumAppyRecStas AppyRecStas { get; set; }

        /// <summary>
        /// 执行科室编码
        /// </summary>
        public string ExecDeptId { get; set; }

        /// <summary>
        /// 执行科室编码
        /// </summary>
        public string ExecDeptCodg { get; set; }

        /// <summary>
        /// 执行科室名称
        /// </summary>
        public string ExecDeptName { get; set; }

        /// <summary>
        /// 样本类别编码
        /// </summary>
        public string? SpcmTypeCodg { get; set; }

        /// <summary>
        /// 样本类别名称
        /// </summary>
        public string? SpcmTypeName { get; set; }

        /// <summary>
        /// 检查部位
        /// </summary>
        public string? ExamPart { get; set; }

        /// <summary>
        /// 简要病史
        /// </summary>
        public string? Illhis { get; set; }

        /// <summary>
        /// 目的
        /// </summary>
        public string? Pup { get; set; }

        /// <summary>
        /// 诊断
        /// </summary>
        public string? Diag { get; set; }

        /// <summary>
        /// 紧急的
        /// </summary>
        public bool IsUrgentFlag { get; set; }

        /// <summary>
        /// 申请机构名称
        /// </summary>
        public string? AppyOrgName { get; set; }

        /// <summary>
        /// 执行机构名称
        /// </summary>
        public string? ExeOrgName { get; set; }

        /// <summary>
        /// 审核医师
        /// </summary>
        public string? ChkDrCodg { get; set; }

        /// <summary>
        /// 审核医师
        /// </summary>
        public string? ChkDrName { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? ChkTime { get; set; }

        /// <summary>
        /// 有效标志
        /// </summary>
        public bool ValiFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }
    }
}
